package org.bmind.datasword.config;

import java.util.Map;




public class ConfigFactory {
	private static final String connectionTo = "org.bmind.datasword.config.impl.OrientConfig";
	private static ConfigManager instance;
	
	public static void init(Map<String, Object> parameters) throws Exception {
		
	  ConfigManager config = (ConfigManager) Class.forName(connectionTo).newInstance();
	  
	  config.init(parameters);
	  
	  instance =  config;

	}
	
	
	
	public static ConfigManager getInstance() {
		return instance;
	}
	  
	
}
